package com.lizhen.j2eepattern.frontcontrollerpattern;

public class Dispatcher {
    private StudentView studentView = new StudentView();
    private HomeView homeView = new HomeView();

    public Dispatcher() {
    }

    public void dispatch(String request) {
        if (request.equalsIgnoreCase("STUDENT")) {
            this.studentView.show();
        } else {
            this.homeView.show();
        }

    }
}
